package cc.vv.btpartyjob.partyservice.adapter

import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.partyservice.R
import cc.vv.btpartyjob.partyservice.module.bean.SerPeopleBean

/**
 * 便民服务adapter
 * Created by Chen.qi on 2018/10/24.
 */
class ServicePeopleAdapter(layoutResId: Int) : SimpleCommonAdapter<SerPeopleBean>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: SerPeopleBean, position: Int) {
        //类型
        helper.getView<TextView>(R.id.tv_isp_type)?.text = item.type

        //类型
        helper.getView<TextView>(R.id.tv_isp_title)?.text = item.title
    }
}